package com.wfc.entity;

import com.wfc.service.DishService;
import com.wfc.service.UserService;
import com.wfc.service.serviceImpl.DishServiceImpl;
import com.wfc.service.serviceImpl.UserServiceImpl;

import java.util.List;

public class Text1 {
    public static void main(String[] args) {
        //UserService userService = new UserServiceImpl();
       /* List<User> usersList = userService.ServiceSelectAll();
        for (int i=0;i<usersList.size();i++){
            System.out.println(usersList.get(i).getUsername()+"\t" + usersList.get(i).getPassword() +"\t" + usersList.get(i).getPhone() + "\t" +usersList.get(i).getAvatar());
        }*/

      /* User user = new User();
       user.setUsername("fff");
       user.setPassword("1223");
       user.setPhone("123");

       userService.ServiceSinsertNews(user);*/


        DishService dishService = new DishServiceImpl();
        List<Dish> list= dishService.selectLike1("汤");
        System.out.println(list.size());
        for (int i=0;i<list.size();i++){
            System.out.println(list.get(i).getDname());
        }


    }
}
